package com.zhongyouyun.lbyc.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: shenyi
 * @Date: 2023-11-14
 * @Description: 用户微信信息
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
@Accessors(chain = true)
@ApiModel(value = "WexinUserModel对象", description = "用户微信信息")
@Data
@TableName("lbyc_wexin_user")
public class WexinUserModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "openid")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty(value = "账号id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "unionid")
    @TableField("union_id")
    private String unionId;

    @ApiModelProperty(value = "用户昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "用户头像")
    @TableField("avatarUrl")
    private String avatarUrl;

    @ApiModelProperty(value = "用户的性别")
    @TableField("gender")
    private String gender;

    @ApiModelProperty(value = "用户所在城市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "用户所在省份")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "用户所在国家")
    @TableField("country")
    private String country;

    @ApiModelProperty(value = "创建人")
    @TableField("createBy")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateBy")
    private String updateBy;

    @ApiModelProperty(value = "修改时间")
    @TableField("updateTime")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;


}